local _G = GLOBAL
local Vector3 = _G.Vector3
local Ingredient = _G.Ingredient
local STRINGS = _G.STRINGS
local RECIPETABS = _G.RECIPETABS
local TECH = _G.TECH

Assets = {
	Asset("ATLAS", "images/klaussack.xml"),
    Asset("IMAGE", "images/klaussack.tex"),
}

PrefabFiles = {
	"klaussack_placer",
	}
--添加克劳斯背包建造
AddPrefabPostInit("klaus", function(inst)    
    if GLOBAL.TheWorld.ismastersim then
        inst.components.lootdropper:AddChanceLoot("klaus_sack_build_blueprint", 1)
    end
end)
AddPrefabPostInit("deer", function(inst)    
    if GLOBAL.TheWorld.ismastersim then
        inst.components.lootdropper:AddChanceLoot("deer_antler1_blueprint", 0.5)
    end
end)


AddRecipe("klaus_sack_build", {Ingredient("redmooneye",1),Ingredient("bluemooneye",1),Ingredient("greenmooneye",1)}, RECIPETABS.MAGIC, TECH.LOST, 
"klaussack_placer", --placer
nil, -- min_spacing
nil, -- nounlock
nil, -- numtogive
nil, -- builder_tag
"images/klaussack.xml", -- atlas
"klaussack.tex",
nil,
"klaus_sack"
) -- image

-- name, ingredients, tab, level, placer, min_spacing, nounlock, numtogive, builder_tag, atlas, image, testfn, product, build_mode, build_distance)

--添加克劳斯背包钥匙建造
AddRecipe("deer_antler1", {Ingredient("boneshard",2),Ingredient("houndstooth",5),Ingredient("silk",5)}, RECIPETABS.MAGIC, TECH.LOST, 
nil, --placer
nil, -- min_spacing
nil, -- nounlock
nil, -- numtogive
nil, -- builder_tag
"images/inventoryimages.xml", -- atlas
"deer_antler1.tex") -- image
STRINGS.NAMES.DEER_ANTLER1 = "鹿之匙"
STRINGS.NAMES.KLAUS_SACK_BUILD = STRINGS.NAMES.KLAUS_SACK
STRINGS.RECIPE_DESC.DEER_ANTLER1 = "无眼鹿角的形状"
STRINGS.RECIPE_DESC.KLAUS_SACK = "内含四次元空间"